package cn.ming.springbootdynamicdatasourcedemo.service.impl;


import cn.ming.springbootdynamicdatasourcedemo.entiy.Address;
import cn.ming.springbootdynamicdatasourcedemo.mapper.AddressMapper;
import cn.ming.springbootdynamicdatasourcedemo.service.IAddressService;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户地址表  服务实现类
 * </p>
 *
 * @author kingbird
 * @since 2021-09-13
 */
@Service
public class AddressServiceImpl extends ServiceImpl<AddressMapper, Address> implements IAddressService {
    //@DS("slave")
    @Override
    public List<Address> listAddress() {
        return this.baseMapper.selectList(null);
    }
}
